package cn.echogo.framework.app;

import java.lang.reflect.Type;
import java.util.List;

import cn.echogo.framework.core.HttpInvoker;
import cn.echogo.framework.core.ResponseEntity;
import cn.echogo.framework.util.StringUtil;

public class LadyManager {
	
	private HttpInvoker httpInvoker;
	
	private LadyManager(HttpInvoker httpInvoker) {
		this.httpInvoker = httpInvoker;
	}
	
	public static LadyManager newInstance(HttpInvoker httpInvoker) {
		return new LadyManager(httpInvoker);
	}
	
	public ResponseEntity<List<Object>> queryLadyList(int pageIndex, int pageSize) throws Exception {
		String url = "";
		String content = StringUtil.mergeKeyValues("pageIndex", pageIndex, "pageSize", pageSize);
		Type responseType = ProfileForm.class;
		ResponseEntity<List<Object>> re = httpInvoker.post(url, content, responseType);
		return re;
	}

	public static ResponseEntity<Void> register(ProfileForm form) throws Exception {
		String content = StringUtil.mergeBeanFields(form);
		return null;
	}
	
	
	
}

class ProfileForm {
	
}
